package com.qianfeng.libra.cowshop.app.activities.home;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.view.Window;
import com.qianfeng.libra.cowshop.app.R;
import com.qianfeng.libra.cowshop.app.configuration.Constants;

public class TutorialActivity extends FragmentActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_tutorial);

        // 设置导航页面是否出现过
        SharedPreferences sp = getSharedPreferences(Constants.SP_APP_DATA, MODE_PRIVATE);
        SharedPreferences.Editor edit = sp.edit();
        edit.putBoolean(Constants.SP_KEY_TUTORIAL_SHOWN,true);
        edit.commit();
    }

    public void btnShowHome(View view){
        //显示过教程界面，启动主界面
        startActivity(new Intent(this, MainActivity.class));
        finish();
    }



}
